package tsg.util;

public class Point 
{	
	public Point()
	{
		
	}
	
	public Point(int x, int y)
	{
		this.setX	(x);
		this.setY	(y);
	}
	
	public Point(Point point)
	{
		this.setX	(point.getX());
		this.setY	(point.getY());
	}
	
	public void setPosition(int x, int y)
	{
		this.setX	(x);
		this.setY	(y);
	}
	
	public int getX()
	{
		return _x;
	}
	
	public void setX(int x)
	{
		_x = x;
	}
	
	public int getY()
	{
		return _y;
	}
	
	public void setY(int y)
	{
		_y = y;
	}
	
	public boolean equals(Point point)
	{
		boolean result = false;
		
		if(	point.getX() 	== this.getX() 	&&
			point.getY() 	== this.getY()	)
		{
			result = true;
		}
		
		return result;
	}

	private int _x	= 0;
	private int _y 	= 0;
}
